const routes = [
  {
    path: '/creation',
    name: '创建型模式',
    routes: [
      {
        path: '/creation',
        redirect: '/creation/creation-singleton',
      },
      {
        path: '/creation/creation-singleton',
        name: '单例模式',
        exact: true,
        component: './Singleton',
      },
      {
        path: '/creation/creation-factory',
        name: '工厂模式',
        exact: true,
        component: './Factory',
      },
    ],
  },
  {
    path: '/structural',
    name: '结构型模式',
    routes: [
      {
        path: '/structural/structural-proxy',
        name: '代理模式',
        exact: true,
        component: './Proxy',
      },
      {
        path: '/structural/structural-decorator',
        name: '装饰器模式',
        exact: true,
        component: './Decorator',
      },
    ],
  },
  {
    path: '/behavioral',
    name: '行为型模式',
    routes: [
      {
        path: '/behavioral/behavioral-strategy',
        name: '策略模式',
        exact: true,
        component: './Strategy',
      },
    ],
  },
];
export default routes;
